package cn.htcode.mybatisplus01.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author: Mr_he
 * @BelongsProject:homework
 * @BelongsPackage:cn.htcode.mybatisplus01.enums
 * @CreateTime:2024-12-27
 * @Version:1.0
 */
public enum SexEnum implements IEnum<Integer> {
    MAN(1, "男"),
    WOMAN(0, "女");

    private final int value;
    private final String desc;

    SexEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
